home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
015a
/
do1003.zip
/
DOSAMPLE.TXT
< prev
next >
Wrap
Text File
|
1991-12-31
|
3KB
|
94 lines
This file contains sample DO script processor files. These are
provided AS IS without warantee or guarantees of any kind. They
are provided only as examples of DO programming and are may not
be suitable for any particular use. You assume all
responsibility for any damage caused by the use of these scripts.
CALC.SCR : Implements a calculator with "tape"
HACK.SCR : Log File Maintenance Script
Maintenance file I use with BOBsBBS. This one reads the
input file searching for a pattern you enter. It then writes
all lines starting with the first one found that matches the
pattern.
Start the program with:
DO HACK {filename} {pattern}
I call this script from a daily maintenance script I have
established with the following command line:
/HACK COMMLOG.BBS *@trim(@dtst(@date({date})-2))*
Since this is a log file, I am searching for the date two
days ago to remove all previous entries. This isn't as fast
as utilities like AWK, but since it runs when I'm asleep, I
don't care.
CLEANSCR SCR : Clean comment lines from DO Scripts
Removing the comment lines makes DO scripts run faster.
COMM SCR
COMM MAC : Simple communications script
Demonstrates DO's communications capabilities.
EDS SCR : More complex communications script example
This script is one that I use to log onto an IBM system through
terminal emulation. It demonstrates the use of some of the more
complex DO commands including determining what to do next by
looking at a specific location on the screen.
Unless you work for EDS, this probably won't be much use to you
as such. It is provided simply for your examination.
USBBSAC SCR
USBBSBRD SCR : USBBS national BBS list extraction
These scripts can extract numbers from the Darwin USBBS national
BBS list (available on BOBsBBS 916/929-7511). USBBSAC.SCR will
extract a particular area code. USBBSBRD.SCR will extract all
boards of a particular type and give you a total and percentage
for that type of board.
LOG SCR : BULLET! call log analyzer
This script demonstrates how you can read and analyze text files.
BULLET!'s caller log is a text file in the format:
{caller name} {date on} {time on} - {date off} {time off}
Each of these files is positional -- e.g. always starts in the
same column for the same length. DO reads this file and prepares
an analysis report which I post as a bulletin.
TIME SCR : Digital Clock with alarm
EVALUATE.SCR : Evaluate downloaded files and check for viruses.
This script is a shell that runs several programs to check
archives downloaded from bulletin boards for viruses. It
requires several adjustments and several files to run on your
system:
PKUNZIP.EXE,
ARJ.EXE,
LHA.EXE,
PKXARC.EXE : archiving programs
SCAN.EXE : virus scanner
LIST.COM : file lister
RECOM.EXE : ZIP comment remover
Be sure to REGISTER each of these files!
COMMENT.SCR : Removes known comment files from ZIP archives
Can be modified to remove these files from any file, but I
have found that the most notorious boards that add these to
archives produce predominately ZIP archives so I have never
bothered.